import java.util.ArrayList;

public class Dvd {
    private int barcode;
    private String title;
    private ArrayList<Copy> copies;
    
    public Dvd(int barcode, String title) {
        this.barcode = barcode;
        this.title = title;
        copies = new ArrayList<>();
    }
    
    public String getTitle() {
        return title;
    }
    
    public int getBarcode() {
        return barcode;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public void setBarcode(int barcode) {
        this.barcode = barcode;
    }
    
    public void addCopy(Copy c) {
        copies.add(c);
    }
}